package com.youi.common;

/**
 * @description: 订单状态枚举
 * @Author: winty
 * @Date: 2020/5/26 14:40
 */
public enum OrderStatusEnum {
    CLOSED(-1, "已关闭"),
    TO_PAY(0, "待付款"),
    PAYED(1, "待发货"),
    TO_RECEIVE(2, "待收货"),
    TO_ESTIMATE(3, "待评价"),
    COMPLETED(4, "已完成"),
    AFTER_SALE(5, "售后");

    private int key;
    private String name;

    OrderStatusEnum(int key, String name) {
        this.key = key;
        this.name = name;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}